﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Linq;

namespace ajayumi.develop.win32.Transport.WCF.Services.DataContracts
{
    /// <summary>
    /// 升级对象
    /// Author  : 黄乙冬
    /// Date    : 2011-08-31
    /// </summary>
    [DataContract]
    public class UpgradeInfo
    {
        /// <summary>
        /// 应用程序名称
        /// </summary>
        [DataMember]
        public string AppName { get; set; }

        /// <summary>
        /// 更新描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }

        /// <summary>
        /// 应用程序版本
        /// </summary>
        [DataMember]
        public string Version { get; set; }

        /// <summary>
        /// 是否是必须的，用于强制升级
        /// </summary>
        [DataMember]
        public bool IsNeed { get; set; }


        /// <summary>
        /// 升级运行模式
        /// </summary>
        [DataMember]
        public UpgradeRunMode UpgradeRunMode { get; set; }

        /// <summary>
        /// 升级模式
        /// </summary>
        [DataMember]
        public UpgradeMode UpgradeMode { get; set; }


        ///// <summary>
        ///// 差异更新版本目录路径
        ///// </summary>
        //[DataMember]
        //public string DiffVerPath { get; set; }

        ///// <summary>
        ///// 完整更新版本目录路径
        ///// </summary>
        //[DataMember]
        //public string FullVerPath { get; set; }

        /// <summary>
        /// 差异升级文件列表
        /// </summary>
        [DataMember]
        public FilePathInfo[] DiffUpgradeFiles { get; set; }

        /// <summary>
        /// 完整升级文件列表
        /// </summary>
        [DataMember]
        public FilePathInfo[] FullUpgradeFiles { get; set; }
    }
}
